<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>父向子通讯复杂</title>
</head>
<body>
<div id="app">
    <heima63 :student="ldh" :age="66"></heima63>
    <!--字符串不加：     -->
</div>
<script src="../node_modules/vue/dist/vue.js"></script>
<script>
    let heima63 = {
        props: {
            student: {
                type: Object,//类型
                default: {}//默认值
            },
            age: {
                type: Number,
                default: 18
            }
        },
        template: `<div>
            我是一个黑马63组件{{student}}</br>
            age:{{age}}
                    </div>`,

    };
    let app = new Vue({
        el: "#app",
        components: {
            heima63 //key:value省略成 value
        },
        data: {
            ldh: {
                name: "zaq",
                age: 77,
                id: 10086
            }
        }
    });
    ;
</script>
</body>
</html>